/*
 * @Description: 服务商-模块路由
 * @Author: xinqiao lxq1990.0716@qq.com
 * @Date: 2025-02-11
 * @LastEditors: xinqiao lxq1990.0716@qq.com
 * @LastEditTime: 2025-02-12
 */

export default [
  // 服务管理
  {
    path: '/service-provider',
    name: 'service-provider',
    component: () => import('/@/layouts/layoutMenu.vue'),
    children: [
      {
        path: 'serve',
        name: 'service-provider-serve',
        redirect: '/service-provider/serve/index',
        children: [
          {
            path: 'index',
            name: 'service-provider-serve-index',
            component: () => import('/@/views/main/serviceProvider/serve/index.vue'),
          },
          {
            path: 'api',
            name: 'service-provider-serve-api',
            component: () => import('/@/views/main/serviceProvider/api/index.vue'),
          },
        ],
      },
    ],
  },
  // 服务商接口统计
  {
    path: '/service-statistics',
    name: 'service-statistics',
    component: () => import('/@/layouts/layoutMenu.vue'),
    redirect: '/service-statistics/access-log',
    children: [
      // 接口访问统计
      {
        path: 'access-log',
        name: 'service-statistics-accessLog',
        component: () => import('/@/views/main/serviceProvider/accessLog/index.vue'),
      },
      // 接口实时统计
      {
        path: 'realtime-access',
        name: 'service-statistics-realtime-access',
        component: () => import('/@/views/main/serviceProvider/realtimeAccess/index.vue'),
      },
      // 接口访问统计
      {
        path: 'access-statistic',
        name: 'service-statistics-access-statistic',
        component: () => import('/@/views/main/serviceProvider/accessStatistics/index.vue'),
      },
    ],
  },
]
